
import React, {  useEffect,useState } from "react";

import { XR_demo_one   } from './XR_demo_one/index'

const width = window.innerWidth;
const heigth =window.innerHeight;
// eslint-disable-next-line react-hooks/rules-of-hooks
const canvas = document.createElement("canvas");
const App =()=>{
 
  useEffect(()=>{
    init();
  },[])

  // 初始化
  function init(){
    // 创建canvas 容器
   
    // 设置 canvas 宽高
    canvas.width = width;
    canvas.height = heigth;
   
    document.body.appendChild(canvas) ;  // 添加到body中
    new XR_demo_one(canvas)

   
   
  }




  
  return <></>
}

export default App
